package com.example.dicos.entity.dot;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "wx_user_role_relation", autoResultMap = true)
@ApiModel(value = "WxUserRoleRelation对象", description = "后台用户和角色关系表")
public class WxUserRoleRelationDto {

    @ApiModelProperty("用户id")
    private Long adminId;

    @ApiModelProperty("角色id数组")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private String[] roleId;
}
